<?php
namespace app\model;
use think\Model;
class Goods extends Model{
    public function sho(){
        return Goods::select();
    }

    public function inser(){
    	return Goods::create(
    			['name'=>'cxn',
    			'typeid'=>'2',
    			'price'=>'66.66']);
    }
    public function up(){
    	return Goods::update([
    			'name' => '陈小宁',
    			'id' => '8'
    		]);
    }
    public function drop(){
    	return Goods::where('id','1')->delete();
    }
    
}

?>